home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Tools / Mac / FWSetBuildPaths < prev    next >
Encoding:
Text File  |  1996-04-25  |  2.4 KB  |  71 lines  |  [TEXT/MPS ]

  1. #========================================================================================
  2. #
  3. #    File:                FWSetBuildPaths
  4. #    Release Version:    $ ODF 1 $
  5. #
  6. #    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. #
  8. #========================================================================================
  9.  
  10.  
  11. #-----------------------------------------------------------------------
  12. #    Location of the current build environment.
  13. #-----------------------------------------------------------------------
  14. Set FWBldEnvDir `Directory`
  15. Export FWBldEnvDir
  16.  
  17. #-----------------------------------------------------------------------
  18. #    Location to put libraries.
  19. #-----------------------------------------------------------------------
  20. Set FWLibDir "{FWBldEnvDir}Lib:"
  21. Export FWLibDir
  22.  
  23. #-----------------------------------------------------------------------
  24. #    Location to put built parts.
  25. #    (Assumed to be in the default directory.)
  26. #-----------------------------------------------------------------------
  27. Set FWBinDir ":Bin:"
  28. Export FWBinDir
  29.  
  30. #-----------------------------------------------------------------------
  31. #    Location to put objects.
  32. #    (Assumed to be in the default directory.)
  33. #-----------------------------------------------------------------------
  34. Set FWObjDir ":Obj:"
  35. Export FWObjDir
  36.  
  37. #-----------------------------------------------------------------------
  38. #    Location to put Precompiled headers.
  39. #    (If not specified then assume they are in the current build 
  40. #     environment in a folder named: "Precompile Headers:". [sfu])
  41. #-----------------------------------------------------------------------
  42. if ¬ "{FWPreCompHdrDir}"
  43.     Set FWPreCompHdrDir "{FWBldEnvDir}Precompile∂ Headers:"
  44.     Export FWPreCompHdrDir
  45. End
  46.  
  47. #-----------------------------------------------------------------------
  48. #    Check to make sure they exist before we continue.
  49. #-----------------------------------------------------------------------
  50.  
  51. If ¬ `Exists "{FWBldEnvDir}"`
  52.     Echo "FWSetBuildPaths: Can not find the build environment directory: {FWBldEnvDir}"
  53.     Exit 1
  54. End
  55.  
  56. #If ¬ `Exists "{FWLibDir}"`
  57. #    Echo "FWSetBuildPaths: Can not find the build library directory: {FWLibDir}"
  58. #    Exit 1
  59. #End
  60.  
  61. #If ¬ `Exists "{FWBinDir}"`
  62. #    Echo "FWSetBuildPaths: Can not find the build binaries directory: {FWBinDir}"
  63. #    Exit 1
  64. #End
  65.  
  66. #If ¬ `Exists "{FWPreCompHdrDir}"`
  67. #    Echo "FWSetBuildPaths: Can not find the pre-compiled headers directory: {FWPreCompHdrDir}"
  68. #    Exit 1
  69. #End
  70.  
  71.